<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 
 * Class MgServerUsers
 *
 * @since 2.0
 *
 * @Entity(table="mg_server_users")
 */
class MgServerUsers extends Model
{
    /**
     * 所属分组id
     *
     * @Column(name="group_id", prop="groupId")
     *
     * @var int|null
     */
    private $groupId;

    /**
     * 客服id
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 是否在线
     *
     * @Column()
     *
     * @var int
     */
    private $online;

    /**
     * 用户状态
     *
     * @Column()
     *
     * @var int
     */
    private $status;

    /**
     * 客服头像
     *
     * @Column(name="user_avatar", prop="userAvatar")
     *
     * @var string
     */
    private $userAvatar;

    /**
     * 客服名称
     *
     * @Column(name="user_name", prop="userName")
     *
     * @var string
     */
    private $userName;

    /**
     * 客服登录密码
     *
     * @Column(name="user_pwd", prop="userPwd")
     *
     * @var string
     */
    private $userPwd;


    /**
     * @param int|null $groupId
     *
     * @return void
     */
    public function setGroupId(?int $groupId): void
    {
        $this->groupId = $groupId;
    }

    /**
     * @param int $id
     *
     * @return void
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @param int $online
     *
     * @return void
     */
    public function setOnline(int $online): void
    {
        $this->online = $online;
    }

    /**
     * @param int $status
     *
     * @return void
     */
    public function setStatus(int $status): void
    {
        $this->status = $status;
    }

    /**
     * @param string $userAvatar
     *
     * @return void
     */
    public function setUserAvatar(string $userAvatar): void
    {
        $this->userAvatar = $userAvatar;
    }

    /**
     * @param string $userName
     *
     * @return void
     */
    public function setUserName(string $userName): void
    {
        $this->userName = $userName;
    }

    /**
     * @param string $userPwd
     *
     * @return void
     */
    public function setUserPwd(string $userPwd): void
    {
        $this->userPwd = $userPwd;
    }

    /**
     * @return int|null
     */
    public function getGroupId(): ?int
    {
        return $this->groupId;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getOnline(): ?int
    {
        return $this->online;
    }

    /**
     * @return int
     */
    public function getStatus(): ?int
    {
        return $this->status;
    }

    /**
     * @return string
     */
    public function getUserAvatar(): ?string
    {
        return $this->userAvatar;
    }

    /**
     * @return string
     */
    public function getUserName(): ?string
    {
        return $this->userName;
    }

    /**
     * @return string
     */
    public function getUserPwd(): ?string
    {
        return $this->userPwd;
    }

}
